If the device disappears in the middle of a mount operation, make sure
to dismiss the password prompt automatically.
https://bugzilla.gnome.org/show_bug.cgi?id=673787
},
_onAborted: function(op) {
- if (!this._dialog)
+ if (!this._dialog && !this._source)
return;
- this._dialog.close(global.get_current_time());
- this._dialog = null;
+ if (this._dialog) {
+ this._dialog.close(global.get_current_time());
+ this._dialog = null;
+ }
+
+ if (this._source) {
+ this._notificationShowing = false;
+ this._source.destroy();
+ this._source = null;
+ }
},
_onShowProcesses2: function(op) {